import request from "@/utils/request";

// 查询小程序用户地址列表
export function listBizUserAddress(query){
  return request({
    url: "/biz/bizUserAddress/list",
    method: "get",
    params: query
  })
}

// 查询小程序用户地址详细
export function getBizUserAddress(id){
  return request({
    url: "/biz/bizUserAddress/" + id,
    method: "get"
  })
}

// 新增小程序用户地址
export function addBizUserAddress(data){
  return request({
    url: "/biz/bizUserAddress",
    method: "post",
    data: data
  })
}

// 修改小程序用户地址
export function updateBizUserAddress(data){
  return request({
    url: "/biz/bizUserAddress",
    method: "put",
    data: data
  })
}

// 删除小程序用户地址
export function delBizUserAddress(id){
  return request({
    url: "/biz/bizUserAddress/" + id,
    method: "delete"
  })
}

// 查询最大编号
export function findMaxSort(){
  return request({
    url: "/biz/bizUserAddress/findMaxSort",
    method: "get"
  })
}
// 导出小程序用户地址
export function exportBizUserAddress (query){
  return request({
    url: "/biz/bizUserAddress/export",
    method: "get",
    params: query
  })
}
